<?php
session_start();
include_once  dirname(__FILE__).'./../../module/common/config.inc.php';
if (!LOGINPAGE){include_once 'limit.php';}

include_once SITE_ROOT.'plus/smarty/Smarty.class.php'; //包含smarty类文件

$t = new Smarty();  //建立smarty实例对象$smarty
$t->template_dir = SITE_ROOT.'/theme/admin/';
$t->compile_dir  = SITE_ROOT.'/theme/templates_c/';
$t->compile_id = 'admin';
//$t->cache_dir = WEB_ROOT.'admin/_cache/';
$t->caching      = false;
$t->left_delimiter 	= "{{";
$t->right_delimiter = "}}";

$outvar[img_url] = '/theme/admin/images/';
$outvar[css_url] = '/theme/admin/css/';
$outvar[js_url] = '/theme/admin/javacript/';
$outvar[site_title] = SITE_NAME;

if ($_SESSION[showerror]){
	$outvar[showerror] = $_SESSION[showerror];
	$_SESSION[showerror] = '';
}
function outFile($mainT='main'){
	global $t,$outvar;
	assignMore($outvar);
	$t->display($mainT.'.html');
}
